package oa.hleast.xswl.pojo.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import oa.hleast.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class MenuVO extends BaseEntity {

    private Long id;

    private Long parentId;

    private String name;

    private String icon;

    private String path;

    private String component;

    private Integer sort;

    private Integer visible;

    private String redirect;

    /**
     * 跳转参数
     */
    private String params;

    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private List<MenuVO> children;

    @ApiModelProperty("是否自动创建菜单 0手动， 1自动")
    private Integer isAutoCreated;
}
